package com.feixiang.springbootinit.model.entity.wechat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName NM_SUBSCRIBERS
 */
@TableName(value ="NM_SUBSCRIBERS")
@Data
public class NmSubscribers {
    /**
     * 
     */
    private String subscriberid;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String nickname;

    /**
     * 
     */
    private String origtype;

    /**
     * 
     */
    private String origid;

    /**
     * 
     */
    private String sexual;

    /**
     * 
     */
    private String city;

    /**
     * 
     */
    private String province;

    /**
     * 
     */
    private String country;

    /**
     * 
     */
    private String language;

    /**
     * 
     */
    private String headimg;

    /**
     * 
     */
    private Date scdt;

    /**
     * 
     */
    private String status;

    /**
     * 
     */
    private String note;

    /**
     * 
     */
    private Date crdt;

    /**
     * 
     */
    private Date mddt;

    /**
     * 
     */
    private String customerid;

    /**
     * 
     */
    private String unionid;

    /**
     * 
     */
    private String dealerid;

    /**
     * 
     */
    private String phone;

    /**
     * 
     */
    private String appid;

    /**
     * 
     */
    private String tablenum;

    /**
     * 
     */
    @TableField(value ="APP_USERID")
    private String appUserid;

    /**
     * 
     */
    @TableField(value ="CHANNEL_STATE")
    private String channelState;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        NmSubscribers other = (NmSubscribers) that;
        return (this.getSubscriberid() == null ? other.getSubscriberid() == null : this.getSubscriberid().equals(other.getSubscriberid()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getNickname() == null ? other.getNickname() == null : this.getNickname().equals(other.getNickname()))
            && (this.getOrigtype() == null ? other.getOrigtype() == null : this.getOrigtype().equals(other.getOrigtype()))
            && (this.getOrigid() == null ? other.getOrigid() == null : this.getOrigid().equals(other.getOrigid()))
            && (this.getSexual() == null ? other.getSexual() == null : this.getSexual().equals(other.getSexual()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getCountry() == null ? other.getCountry() == null : this.getCountry().equals(other.getCountry()))
            && (this.getLanguage() == null ? other.getLanguage() == null : this.getLanguage().equals(other.getLanguage()))
            && (this.getHeadimg() == null ? other.getHeadimg() == null : this.getHeadimg().equals(other.getHeadimg()))
            && (this.getScdt() == null ? other.getScdt() == null : this.getScdt().equals(other.getScdt()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote()))
            && (this.getCrdt() == null ? other.getCrdt() == null : this.getCrdt().equals(other.getCrdt()))
            && (this.getMddt() == null ? other.getMddt() == null : this.getMddt().equals(other.getMddt()))
            && (this.getCustomerid() == null ? other.getCustomerid() == null : this.getCustomerid().equals(other.getCustomerid()))
            && (this.getUnionid() == null ? other.getUnionid() == null : this.getUnionid().equals(other.getUnionid()))
            && (this.getDealerid() == null ? other.getDealerid() == null : this.getDealerid().equals(other.getDealerid()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
            && (this.getTablenum() == null ? other.getTablenum() == null : this.getTablenum().equals(other.getTablenum()))
            && (this.getAppUserid() == null ? other.getAppUserid() == null : this.getAppUserid().equals(other.getAppUserid()))
            && (this.getChannelState() == null ? other.getChannelState() == null : this.getChannelState().equals(other.getChannelState()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSubscriberid() == null) ? 0 : getSubscriberid().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getNickname() == null) ? 0 : getNickname().hashCode());
        result = prime * result + ((getOrigtype() == null) ? 0 : getOrigtype().hashCode());
        result = prime * result + ((getOrigid() == null) ? 0 : getOrigid().hashCode());
        result = prime * result + ((getSexual() == null) ? 0 : getSexual().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getCountry() == null) ? 0 : getCountry().hashCode());
        result = prime * result + ((getLanguage() == null) ? 0 : getLanguage().hashCode());
        result = prime * result + ((getHeadimg() == null) ? 0 : getHeadimg().hashCode());
        result = prime * result + ((getScdt() == null) ? 0 : getScdt().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode());
        result = prime * result + ((getCrdt() == null) ? 0 : getCrdt().hashCode());
        result = prime * result + ((getMddt() == null) ? 0 : getMddt().hashCode());
        result = prime * result + ((getCustomerid() == null) ? 0 : getCustomerid().hashCode());
        result = prime * result + ((getUnionid() == null) ? 0 : getUnionid().hashCode());
        result = prime * result + ((getDealerid() == null) ? 0 : getDealerid().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
        result = prime * result + ((getTablenum() == null) ? 0 : getTablenum().hashCode());
        result = prime * result + ((getAppUserid() == null) ? 0 : getAppUserid().hashCode());
        result = prime * result + ((getChannelState() == null) ? 0 : getChannelState().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", subscriberid=").append(subscriberid);
        sb.append(", name=").append(name);
        sb.append(", nickname=").append(nickname);
        sb.append(", origtype=").append(origtype);
        sb.append(", origid=").append(origid);
        sb.append(", sexual=").append(sexual);
        sb.append(", city=").append(city);
        sb.append(", province=").append(province);
        sb.append(", country=").append(country);
        sb.append(", language=").append(language);
        sb.append(", headimg=").append(headimg);
        sb.append(", scdt=").append(scdt);
        sb.append(", status=").append(status);
        sb.append(", note=").append(note);
        sb.append(", crdt=").append(crdt);
        sb.append(", mddt=").append(mddt);
        sb.append(", customerid=").append(customerid);
        sb.append(", unionid=").append(unionid);
        sb.append(", dealerid=").append(dealerid);
        sb.append(", phone=").append(phone);
        sb.append(", appid=").append(appid);
        sb.append(", tablenum=").append(tablenum);
        sb.append(", appUserid=").append(appUserid);
        sb.append(", channelState=").append(channelState);
        sb.append("]");
        return sb.toString();
    }
}